/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by:   焦质晔
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取会员卡信息
export const getCardInfo = params => axios.get(`${SERVER.MEMBERS_CLUB}/management/cardInfo/getCardInfo`, { params });

// 生成卡号
export const saveCardNo = params => axios.post(`${SERVER.MEMBERS_CLUB}/management/cardInfo/saveCardNo`, params);

// 通过id获取会员卡信息
export const getCardInfoById = params => axios.get(`${SERVER.MEMBERS_CLUB}/management/cardInfo/getCardInfoById`, { params });

// 会员卡信息保存
export const saveStopCard = params => axios.post(`${SERVER.MEMBERS_CLUB}/management/cardInfo/saveStopCard`, params);

// 参数查询
export const doSearch = params => axios.post(`${SERVER.SYSMANAGE}/params/doSearch`, params);

// 获取未停用会员卡类别
export const getCardTypesNotStop = params => axios.get(`${SERVER.MEMBERS_CLUB}/basic/activity/getCardTypesNotStop`, { params });
